<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>气度网 - 气度如水</title>
    <link type="text/css" rel="stylesheet" href="${ctx}/css/product_list.css" >
	<script type="text/javascript">
		function changeOption(url){
			location.href = '${ctx}/company_manage!listInfo?' + url;			
		};
	</script>
</head>

<body>
	<div class="container_list">
		<div class="title">
        	<div class="ctrl">校园信息列表</div>
            <div class="ctrl">
                        显示长度
                        <select onChange="changeOption(this.options[this.selectedIndex].value)">
                        <s:if test="pageSize==10">
                            <option value="pageSize=10" selected>10条</option>
                            <option value="pageSize=20">20条</option>
                            <option value="pageSize=50">50条</option>
                            <option value="pageSize=100">100条</option>
                        </s:if>
                        <s:elseif test="pageSize==20">
                            <option value="pageSize=10">10条</option>
                            <option value="pageSize=20" selected>20条</option>
                            <option value="pageSize=50">50条</option>
                            <option value="pageSize=100">100条</option>                       
                        </s:elseif>
                        <s:elseif test=" pageSize==50">
                            <option value="pageSize=10">10条</option>
                            <option value="pageSize=20" >20条</option>
                            <option value="pageSize=50" selected>50条</option>
                            <option value="pageSize=100">100条</option>                           
                        </s:elseif>
                        <s:else>
                            <option value="pageSize=10">10条</option>
                            <option value="pageSize=20" >20条</option>
                            <option value="pageSize=50" >50条</option>
                            <option value="pageSize=100" selected>100条</option>                         
                        </s:else>                      
                        </select>
			</div>
			<div class="ctrl">
                        排列方式
                        <select onChange="changeOption(this.options[this.selectedIndex].value)">
                        <s:if test=" orderBy=='create_date' & asc=='desc' ">
                            <option value="orderBy=create_date&asc=desc" selected>发布时间最近</option>
                            <option value="orderBy=create_date&asc=asc">发布时间最晚</option>
                            <option value="orderBy=news_updateTime&asc=desc">修改时间最近</option>
                            <option value="orderBy=news_updateTime&asc=asc">修改时间最晚</option>                  
                            <option value="orderBy=page_views&asc=desc">人气从高到低</option>
                            <option value="orderBy=page_views&asc=asc">人气从低到高</option>                        
                        </s:if>
                        <s:elseif test=" orderBy=='create_date' & asc=='asc' ">
                            <option value="orderBy=create_date&asc=desc">发布时间最近</option>
                            <option value="orderBy=create_date&asc=asc" selected>发布时间最晚</option>
                            <option value="orderBy=news_updateTime&asc=desc">修改时间最近</option>
                            <option value="orderBy=news_updateTime&asc=asc">修改时间最晚</option>                  
                            <option value="orderBy=page_views&asc=desc">人气从高到低</option>
                            <option value="orderBy=page_views&asc=asc">人气从低到高</option>                        
                        </s:elseif>
                        <s:elseif test=" orderBy=='news_updateTime' & asc=='desc' ">
                            <option value="orderBy=create_date&asc=desc">发布时间最近</option>
                            <option value="orderBy=create_date&asc=asc" >发布时间最晚</option>
                            <option value="orderBy=news_updateTime&asc=desc" selected>修改时间最近</option>
                            <option value="orderBy=news_updateTime&asc=asc">修改时间最晚</option>                  
                            <option value="orderBy=page_views&asc=desc">人气从高到低</option>
                            <option value="orderBy=page_views&asc=asc">人气从低到高</option>                        
                        </s:elseif>
                        <s:elseif test=" orderBy=='news_updateTime' & asc=='asc' ">
                            <option value="orderBy=create_date&asc=desc">发布时间最近</option>
                            <option value="orderBy=create_date&asc=asc" >发布时间最晚</option>
                            <option value="orderBy=news_updateTime&asc=desc" >修改时间最近</option>
                            <option value="orderBy=news_updateTime&asc=asc" selected>修改时间最晚</option>                  
                            <option value="orderBy=page_views&asc=desc">人气从高到低</option>
                            <option value="orderBy=page_views&asc=asc">人气从低到高</option>                        
                        </s:elseif>
                        <s:elseif test=" orderBy=='page_views' & asc=='desc' ">
                            <option value="orderBy=create_date&asc=desc">发布时间最近</option>
                            <option value="orderBy=create_date&asc=asc" >发布时间最晚</option>
                            <option value="orderBy=news_updateTime&asc=desc" >修改时间最近</option>
                            <option value="orderBy=news_updateTime&asc=asc" >修改时间最晚</option>                  
                            <option value="orderBy=page_views&asc=desc" selected>人气从高到低</option>
                            <option value="orderBy=page_views&asc=asc">人气从低到高</option>                        
                        </s:elseif>
                        <s:else>
                            <option value="orderBy=create_date&asc=desc">发布时间最近</option>
                            <option value="orderBy=create_date&asc=asc">发布时间最晚</option>
                            <option value="orderBy=news_updateTime&asc=desc">修改时间最近</option>
                            <option value="orderBy=news_updateTime&asc=asc">修改时间最晚</option>                  
                            <option value="orderBy=page_views&asc=desc">人气从高到低</option>
                            <option value="orderBy=page_views&asc=asc" selected>人气从低到高</option>
                        </s:else>    
                        </select>
			</div>
        </div> 
        <div class="detail">
        	<li class="index_list">
            	<div class="index_">序号</div>
                <div class="info_title_">信息标题</div>
                <div class="update_date_">修改日期</div>
                <div class="public_date_">发布日期</div>
                <div class="public_date_">用户操作</div>
            </li> 
        <s:iterator value="publicInfo.objList" var="news" status="count">
        	<li>
            	<div class="index_"><s:property value="#count.index+1"/></div>
                <div class="info_title_"><s:property value="#news.title"/></div>
                <div class="update_date_"><s:property value="#news.updateTime"/></div>
                <div class="public_date_"><s:property value="#news.createDate"/></div>
                <div class="public_date_"><a href="#">编辑</a> | <a href="#">删除</a></div>
            </li>
        </s:iterator>   
		    <li  style="text-align:center;"><s:property value="%{publicInfo.pagebar}"  escape="false" /></li>                  
        </div>      
    </div>
</body>
</html>
